package com.well.rpc.event;

import com.well.rpc.model.EventType;
import com.well.rpc.model.TransData;
import io.netty.channel.ChannelHandlerContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * 检测集群连接事件
 */
@Component
public class CheckClusterEvent implements AppEvent {
    Logger logger = LoggerFactory.getLogger(CheckClusterEvent.class);

    @Override
    public void doEvent(ChannelHandlerContext channelHandlerContext, TransData transData) {
        logger.info(transData.getJsonData());
    }

    @Override
    public EventType eventType() {
        return EventType.CHECK_CLUSTER;
    }
}
